﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Web.Library.DomainObject.SQLServer;

namespace Web.Library.Facade.SQLServer
{
    public partial class SysAppGroupAuthorizationFacade
    {
        public bool UpdateInsert(SysAppGroupAuthorization domain)
        {
            return dal.UpdateInsert(domain);
        }

        public SysAppGroupAuthorization RetrieveAuthorizationByGroupIDAndMenuID(int GroupAppID, int AppID)
        {
            //GroupAuthorization groupAuthorization1 = new GroupAuthorization();
            SysAppGroupAuthorization groupAuthorization2;
            try
            {
                groupAuthorization2 = dal.RetrieveMenuAuthorizationByGroupIDAndMenuID(GroupAppID, AppID);// new GroupAuthorizationDAL().RetrieveAuthorizationByGroupIDAndMenuID(GroupID, MenuID);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return groupAuthorization2;
        }

    }
}
